import request from "@/utils/request";
// 配置接口
export const config = (params) => {
  return request({
    url: "/v1/common/config/get",
    method: "get",
    params,
  });
};
//首页bannner
export const $_banner = (params) => {
  return request({
    url: "/v1/common/banner/list",
    method: "get",
    params,
  });
};
// 大家都在看
export const $_all_look = (params) => {
  return request({
    url: "/v1/home/trending/resource/list",
    method: "get",
    params,
  });
};

// 热门活动
export const $_hot_activity = (params) => {
  return request({
    url: "/v1/home/hot/activity/list",
    method: "get",
    params,
  });
};

// 热门文化名片
export const $_hot_culture_card = (params) => {
  return request({
    url: "/v1/home/hot/presses/list",
    method: "get",
    params,
  });
};
// 精选专栏
export const $_featured_column_list = (params) => {
  return request({
    url: "/v1/home/featured/column/list",
    method: "get",
    params,
  });
};
// 文化报刊亭
export const $_cultural_newsstand = (params) => {
  return request({
    url: "/v1/home/cultural/newsstand/resource/list",
    method: "get",
    params,
  });
};
// 文化集市下-----纸刊产品接口
export const $_recommend_journal_list = (params) => {
  return request({
    url: "/v1/home/recommend/journal/list",
    method: "get",
    params,
  });
};
// 文化集市下-----文创周边产品接口
export const $_recommend_cultural_list = (params) => {
  return request({
    url: "/v1/home/recommend/cultural/list",
    method: "get",
    params,
  });
};
// 文化集市下-----IP产品接口
export const $_recommend_ip_list = (params) => {
  return request({
    url: "/v1/home/recommend/ip/list",
    method: "get",
    params,
  });
};
// 文化集市下-----数据库产品接口
export const $_recommend_database_list = (params) => {
  return request({
    url: "/v1/home/recommend/database/list",
    method: "get",
    params,
  });
};
// 主编圆桌
export const $_recommend_audio_list = (params) => {
  return request({
    url: "/v1/home/recommend/audio/list",
    method: "get",
    params,
  });
};
// 大咖讲坛
export const $_recommend_influential_person_list = (params) => {
  return request({
    url: "/v1/home/recommend/influential/person/list",
    method: "get",
    params,
  });
};
// 头条
export const $_recommend_article_list = (params) => {
  return request({
    url: "/v1/home/recommend/article/list",
    method: "get",
    params,
  });
};
// 是否有未独通知消息
export const $_has_notice = (params) => {
  return request({
    url: "/v1/notice/unread/get",
    method: "get",
    params,
  });
};
// 文化报刊亭-购买连接点击量记录接口
export const $_click_log = (params) => {
  return request({
    url: "/v1/home/cultural/newsstand/click/log",
    method: "get",
    params,
  });
};

// 电子期刊往期接口
export const $_past_magazine = (params) => {
  return request({
    url: "/v1/market/magazine/past/issues",
    method: "get",
    params,
  });
};
